import request from '@/utils/request'

// 查询录取学生列表
export function enrollList(query) {
  return request({
    url: '/system/enroll/list',
    method: 'get',
    params: query
  })
}

// 新增学生
export function addEnroll(data) {
  return request({
    url: '/system/enroll',
    method: 'post',
    data: data
  })
}

// 修改学生
export function updateEnroll(data) {
  return request({
    url: '/system/enroll',
    method: 'put',
    data: data
  })
}

// 删除学生
export function delEnroll(id) {
  return request({
    url: '/system/enroll/' + id,
    method: 'delete'
  })
}

// 查询学生详细
export function getEnroll(id) {
  return request({
    url: '/system/enroll/' + id,
    method: 'get'
  })
}

// 单个学生分配班级
export function assignClazz(data) {
  return request({
    url: '/system/enroll/assignClazz',
    method: 'put',
    data: data
  })
}